import request from '@/utils/request'

// 查询消防单位列表
export function fireServiceUnitList(query) {
    return request({
      url: '/wb/fireServiceUnit/list',
      method: 'get',
      params: query
    })
  }
  
// 查看消防单位
export function fireServiceUnit(id) {
    return request({
      url: '/wb/fireServiceUnit/' + id,
      method: 'get'
    })
  }

// 新增消防单位
 export function fireServiceUnitAdd(data) {
        return request({
          url: '/wb/fireServiceUnit',
          method: 'post',
          data: data
        })
      }


  
  // 修改消防单位
  export function fireServiceUnitUp(data) {
    return request({
      url: '/wb/fireServiceUnit',
      method: 'put',
      data: data
    })
  }


// 删除消防单位
 export function fireServiceUnitDel(id) {
        return request({
          url: '/wb/fireServiceUnit/' + id,
          method: 'delete'
        })
      }


      
// 查询用户列表
export function fireServiceUserList(query) {
    return request({
      url: '/wb/fireServiceUser/list',
      method: 'get',
      params: query
    })
  }
  
    // 查看
export function fireServiceUser(id) {
    return request({
      url: '/wb/fireServiceUser/' + id,
      method: 'get'
    })
  }


// 新增消防用户
 export function fireServiceUserAdd(data) {
        return request({
          url: '/wb/fireServiceUser',
          method: 'post',
          data: data
        })
      }


  
  // 修改合同用户
  export function fireServiceUserUp(data) {
    return request({
      url: '/wb/fireServiceUser',
      method: 'put',
      data: data
    })
  }


// 删除消防用户
 export function fireServiceUserDel(id) {
        return request({
          url: '/wb/fireServiceUser/' + id,
          method: 'delete'
        })
      }